﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zero.UControl.Base.Models
{
    public class NodeItem
    {
        public int Id { get; set; }
        public int ParentId { get; set; }
        public string Name { get; set; }
        public NodeType NodeType { get; set; }
        public string Icon { get; set; }  // 图标路径
        public ObservableCollection<NodeItem> Children { get; set; } = new();
    }

    public enum NodeType
    {
        Parent,
        Child
    }
}
